/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package EDT.obj;

import java.util.HashMap;

/**
 *
 * @author Abdelali
 */
public class Formation {
    
    private int id;
    private String nom; 
    private HashMap<Integer,Integer> lesPromos;
    private int periodes;
    private HashMap<Integer,Integer> nbrGpPromo;
    private int anneeEx;

    public HashMap<Integer, Integer> getNbrGpPromo() {
        return nbrGpPromo;
    }

    public void setNbrGpPromo(HashMap<Integer, Integer> nbrGpPromo) {
        this.nbrGpPromo = nbrGpPromo;
    }
    
    public Formation(String nom) {
        this.nom = nom;
        lesPromos = new HashMap<>();
    }
    
    public Formation(String nom, int periodes) {
        this.nom = nom;
        this.periodes = periodes;
        lesPromos = new HashMap<>();
    }
    
    public Formation(int id,String nom, int periodes,int anneeEx) {
        this.id = id;
        this.nom = nom;
        this.periodes = periodes;
        lesPromos = new HashMap<>();
        this.anneeEx = anneeEx;
    }

    public int getAnneeEx() {
        return anneeEx;
    }

    public void setAnneeEx(int anneeEx) {
        this.anneeEx = anneeEx;
    }
    
    
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
    
    public String getNom() {
        return nom;
    }

    public void setNom(String nom) {
        this.nom = nom;
    }

    public HashMap<Integer, Integer> getLesPromos() {
        return lesPromos;
    }

    public void setLesPromos(HashMap<Integer, Integer> lesPromos) {
        this.lesPromos = lesPromos;
    }

    public int getPeriodes() {
        return periodes;
    }

    public void setPeriodes(int periodes) {
        this.periodes = periodes;
    }
    
    
}
